/**
 * Created by Administrator on 2017/3/21.
 */
import React, {Component} from 'react';
import {
  Form, Input, Radio, Select, Icon,
  Upload, Descriptions, DatePicker,
} from 'antd';
import {connect} from 'dva';
import moment from 'moment'
import request from '@/utils/request';
const FormItem = Form.Item;
const { TextArea } = Input;
const RadioGroup = Radio.Group;
const Option = Select.Option;
class AddPoliciesForm extends Component {
  constructor(props) {
    super(props);
    this.state = {
    };
  }

  componentDidMount() {
  }
  render() {
    const formItemLayoutWithLabel = {
      labelCol: {
        xs: {span: 24},
        sm: {span: 6},
      },
      wrapperCol: {
        xs: {span: 24},
        sm: {span: 15},
      }
    };

    const {getFieldDecorator} = this.props.form;
    return (
      <div>
        <Form>
          <Descriptions  column={4}   className={'blue-descriptions'} title={<div style={{textAlign:'center'}}>完成工单详情</div>} bordered>
            <Descriptions.Item label={<span >评价分数</span>} span={4}>
              {getFieldDecorator('evaluation_score', {
                initialValue: 1,
              })(
               <Select>
                 <Option value={1}>1分</Option>
                 <Option value={2}>2分</Option>
                 <Option value={3}>3分</Option>
                 <Option value={4}>4分</Option>
                 <Option value={5}>5分</Option>
               </Select>
              )}
            </Descriptions.Item>
            <Descriptions.Item label={<span >评价说明</span>} span={4}>
              {getFieldDecorator('evaluation_description', {
                initialValue: '',
              })(
                <Input></Input>
              )}
            </Descriptions.Item>
          </Descriptions>
        </Form>
      </div>
    );
  }
}

const AddPoliciesFormWrap = Form.create()(AddPoliciesForm);
export default connect()(AddPoliciesFormWrap);


